﻿using System;
using System.Collections.Generic;
using Microsoft.CSharp.RuntimeBinder;

namespace ObjectModel
{
    [Table(Name="customers")]
    public class Customer : BaseEntity<Customer>
    {
        [Field(Name = "name")]
        public String Name { get; set; }

        [Field(Name = "corporate_name")]
        public String CorporateName { get; set; }

		[Field(Name = "tel")]
		public String Tel { get; set; }

		[Field(Name = "cel")]
		public String Cel { get; set; }
		
		[Field(Name = "business_email")]
		public String Email { get; set; }
		
		[Field(Name = "street")]
		public String Street { get; set; }
		
		[Field(Name = "complement")]
		public String Complement { get; set; }
		
		[Field(Name = "cep")]
		public String CEP { get; set; }
		
		[Field(Name = "neighbourhood")]
		public String Neighbourhood { get; set; }
		
		[Field(Name = "city")]
		public String City { get; set; }
		
		[Field(Name = "state")]
		public String State { get; set; }

        [Field(Name = "creation_date")]
        public DateTime Birthdate { get; set; }

		//[Field(IsOtherTable = true, PkId = "id_customer", Insertable = false)]
		//public List<CustomerContact> CustomerContact { get; set; }

        [Field(Name = "description")]
        public String Description { get; set; }

        /// <summary>
        /// CPF para pessoa física / CNPJ para pessoa jurídica
        /// </summary>
        [Field(Name = "cnpj")]
        public String Document { get; set; }

        [Field(Name = "municipal_registration")]
        public String MunicipalInscription { get; set; }

        [Field(Name = "state_registration")]
		public String StateInscription { get; set; }

    }
}
